package com.jincheng.web.controller.system;

import com.jincheng.common.core.controller.BaseController;
import com.jincheng.system.domain.CommentLike;
import com.jincheng.system.service.ICommentLikeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/commentLike")
@RequiredArgsConstructor
public class CommentLikeController extends BaseController {
    private final ICommentLikeService commentLikeService;

    /**
     * 查询全部
     */
    @GetMapping("/list")
    public List<CommentLike> list(CommentLike commentLike) {
        return commentLikeService.list(commentLike);
    }

    /**
     * 分页查询全部
     */
    @GetMapping("/list/page")
    public List<CommentLike> listPage(CommentLike commentLike) {
        startPage();
        return list(commentLike);
    }


}
